/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package VO;

import FinancialEntity.Company;
import FinancialEntity.Market;
import FinancialEntity.Stock;
import java.util.List;
import javax.persistence.*;

/**
 *
 * @author Sebastian
 */
public class CompanyVO {
    
    private Integer id;
    private String name;
    private String symbol;
    private String description;
    private List<Stock> stockList;
    private Market marketid;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Market getMarketid() {
        return marketid;
    }

    public void setMarketid(Market marketid) {
        this.marketid = marketid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Stock> getStockList() {
        return stockList;
    }

    public void setStockList(List<Stock> stockList) {
        this.stockList = stockList;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }
    
    public Company toEntity(){
        Company compania = new Company();
        compania.setDescription(description);
        compania.setId(id);
        compania.setMarketid(marketid);
        compania.setName(name);
        compania.setStockList(stockList);
        compania.setSymbol(symbol);
        return compania;
    }
    
}
